home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / internet / miami_dodatki / netgate / install / install.iconx next >
Text File  |  1996-07-17  |  1KB  |  62 lines

  1. ; $VER: Install.IconX 37.2 (17.07.96)
  2. ;
  3. ; This script installs NetGate and all related libraries and files.
  4. ;
  5. FailAt 21
  6.  
  7. Echo "NetGate installation script for use with IconX"
  8. Echo "Copyright © 1996 by Michael Berg"
  9. Echo "All Rights Reserved.*N"
  10.  
  11. Echo "Installing netgate.library..."
  12.  
  13. SetEnv DoCopyLib YES
  14.  
  15. Version >NIL: netgate.library 2
  16. If NOT WARN
  17.     Echo "    You already have: " NOLINE
  18.     Version netgate.library
  19.     Echo "" NOLINE
  20.     Ask "    Do you want to install `Version /libs/netgate.library file`?"
  21.     If NOT WARN
  22.         SetEnv DoCopyLib NO
  23.     EndIf
  24. EndIf
  25.  
  26. If $DoCopyLib EQ "YES"
  27.     Echo "    Copying netgate.library to your test: ..."
  28.     Copy /libs/netgate.library test: QUIET
  29.     Avail >NIL: FLUSH
  30. Else
  31.     Echo "    Skipped..."
  32. EndIf
  33.  
  34. Echo "*NInstalling NetGate and related utilities..."
  35.  
  36. If EXISTS AMITCP:bin
  37.     SetEnv TargetDir AmiTCP:bin/
  38. Else
  39.     SetEnv TargetDir C:
  40. Endif
  41.  
  42. Lab SelectDir2
  43.  
  44. Ask "    Install in '$TargetDir'? [y/n]:"
  45. If WARN
  46.     Echo "    Copying NetGate to *"$TargetDir*"..."
  47.     Copy /NetGate $TargetDir QUIET
  48.     Copy /NetGate.info $TargetDir QUIET
  49.     Copy /NGCatchup $TargetDir QUIET
  50.     Copy /NGWatch $TargetDir QUIET
  51. Else
  52.     Echo NOLINE "    Enter other path or 'QUIT' to skip installation: "
  53.     /GetLine >ENV:TargetDir
  54.     If NOT $TargetDir EQ "QUIT"
  55.         Skip BACK SelectDir2
  56.     Else
  57.         Echo "    Installation skipped..."
  58.     EndIf
  59. EndIf
  60.  
  61. Echo "*NInstallation complete. You may close the window now."
  62.